import {pillowRequest} from '@/base/PillowRequest';
import {Result} from '@/base/Result';
import {Page} from '@/base/Page';
import {AsleepAnalyze} from '@/base/model/AsleepAnalyze';

export function getAsleepAnalyzeApi(
  params:
    {
      pageIndex: number,
      pageSize: number,
      sortDirection: string,
      createBegin?: string,
      createEnd?: string,
      memberId?: number,
    }
): Promise<Result<Page<AsleepAnalyze>>> {
  return pillowRequest.getPage(AsleepAnalyze, '/api/asleep/analyze', {params});
}
